#include <sys/time.h>
#include <stdint.h>

#include "systemutils.h"

int64_t currentTimeMillis() {
    struct timeval tv;
    gettimeofday(&tv, NULL);
    int64_t sec = tv.tv_sec;
    int64_t usec = tv.tv_usec;
    return sec * 1000 + usec / 1000;
}